//
//  MyInfoemationHeaderTableViewCell.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/28.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "MyInfoemationHeaderTableViewCell.h"

@implementation MyInfoemationHeaderTableViewCell{
    GLGWLabel * leftNameLabel;
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        leftNameLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self.contentView];
        [leftNameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.top.equalTo(self.contentView.mas_top).offset(kHeightProportion_In_iPhoneTriploid(27));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(20)));
        }];
        //
        _headerImageView = [[GLGWImageView alloc] initWithFrame:CGRectMake(KScreenWidth - kWidthProportion_In_iPhoneTriploid(85), kHeightProportion_In_iPhoneTriploid(12), kWidthProportion_In_iPhoneTriploid(50), kWidthProportion_In_iPhoneTriploid(50)) inSuperView:self];
        _headerImageView.layer.cornerRadius = kWidthProportion_In_iPhoneTriploid(25);
        _headerImageView.layer.masksToBounds = YES;
        _headerImageView.backgroundColor = kRandomColor;
    }
    return self;
}

-(void)setNameStr:(NSString *)nameStr{
    _nameStr = nameStr;
    leftNameLabel.text = _nameStr;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
